<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>业务管理</a></li>
            <li class="active"><strong>积分抽奖详情</strong></li>
        </ol>
    </div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="busLuckDrawpConfigDetailCtrl">
    <form class="form-horizontal" id="form1" name="horizontalCardAdd">
        <div class="form-group">
            <div class="row">
                <div class="col-lg-12">
                    <div class="tabs-container tab_other">
                        <uib-tabset>
                            <uib-tab>
                                <uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
                                            class="font-bold">活动属性</strong>
									</span>
                                </uib-tab-heading>
                                <div class="panel-body ibox float-e-margins">
                                    <div class="ibox-title">
                                        <h5>活动属性</h5>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>活动名称:</label>
                                        <div class="col-sm-3">
                                            <input type="text" class="form-control" name="actName" disabled maxlength="20" ng-model="addInfo.actName">
                                            <div class="req_mesg" ng-show="horizontalCardAdd.actName.$dirty && horizontalCardAdd.actName.$invalid">
                                                <span ng-show="horizontalCardAdd.actName.$error.required">活动名称不能为空</span>
                                            </div>
                                        </div>
                                        <label style="margin-top:7px;">注:不能多于20个字</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">活动说明:</label>
                                        <div class="col-sm-5">
                                            <textarea type="text" class="form-control" disabled ng-model="addInfo.actDesc">
                                            </textarea>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>活动时间:</label>
                                        <div class="col-sm-5">
                                            <input id="d5231" class="form-control" type="datetime" disabled name="actBeginTime" ng-model="addInfo.actBeginTime" onchange=""  style="width:auto;display:inline-block;"
                                                   onFocus="var d5232=$dp.$('d5232');WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5232.focus();},maxDate:'#F{$dp.$D(\'d5232\')}'})"/>
                                            ~
                                            <input id="d5232" class="form-control" type="datetime" disabled name="actEndTime" ng-model="addInfo.actEndTime" onchange=""  style="width:auto;display:inline-block;"
                                                   onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5231\')}'})"/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>序列号:</label>
                                        <div class="col-sm-3">
                                            <input type="text" class="form-control" name="seqNo" disabled ng-model="addInfo.seqNo">
                                            <div class="req_mesg" ng-show="horizontalCardAdd.seqNo.$dirty && horizontalCardAdd.seqNo.$invalid">
                                                <span ng-show="horizontalCardAdd.seqNo.$error.required">序列号不能为空</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>无抽奖资格提示:</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" name="notice" disabled ng-model="addInfo.luckDrawpDetail.notice">
                                            <div class="req_mesg" ng-show="horizontalCardAdd.notice.$dirty && horizontalCardAdd.notice.$invalid">
                                                <span ng-show="horizontalCardAdd.notice.$error.required">无抽奖资格提示不能为空</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>抽奖条件:</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" ng-model="addInfo.luckDrawpDetail.expendType" disabled ng-change="expendTypeChange(true)"
                                                    ng-options="x.value as x.text for x in expendTypeSelect"/>
                                        </div>
                                        <div class="col-sm-8" ng-if="expendTypeSta">
                                            <div style="float:left;">
                                                <label style="margin-top: 7px">每次抽奖消耗</label>
                                                <input type="text"  class="textClass" style="width: 100px;" disabled name="expendNum" ng-model="addInfo.luckDrawpDetail.expendNum">
                                                <label class="fontClass">积分</label>
                                            </div>
                                        </div>
                                        <div class="col-sm-8" ng-if="!expendTypeSta">
                                            <div style="float:left;">
                                                <label style="margin-top: 7px">当天每笔成功交易且金额 >= </label>
                                                <input type="text"  class="textClass" style="width: 100px;" disabled name="amountRangeMin" ng-model="addInfo.luckDrawpDetail.amountRangeMin">
                                                <label class="fontClass">元获得一次抽奖</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">每天最多抽奖次数:</label>
                                        <div class="col-sm-3">
                                            <input type="text" class="form-control" disabled name="expendNumber" ng-model="addInfo.luckDrawpDetail.expendNumber">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><i class="red_req">*</i>活动介绍:</label>
                                        <div class="col-sm-8" >
                                            <div style="height: 250px;overflow:hidden;overflow-y:scroll" class="form-control" ng-bind-html="addInfo.actRule | trustHtml" readonly>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">网页链接:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" disabled ng-model="addInfo.actLink">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"></label>
                                        <div class="col-sm-6">
                                            <a class="btn btn-primary4" ng-click="goBackFun()" >返回</a>
                                        </div>
                                    </div>
                                </div>
                            </uib-tab>
                            <uib-tab>
                                <uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
                                            class="font-bold">奖项配置</strong>
									</span>
                                </uib-tab-heading>
                                <div class="panel-body ibox float-e-margins">
                                    <div class="ibox-title">
                                        <h5>奖项配置</h5>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-12" >
                                            <a class="btn btn-new btn-mr20" style="float:right;" type="button" ng-show="hasPermit('activityManagement.savePrizeDisplay')"  ng-click="addDataModal()" >数据配置</a>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-12">
                                            <div class="gridStyle"  ui-grid="userGrid" ui-grid-selection ui-grid-resize-columns ui-grid-pinning></div>
                                            <div ng-show="loadImg" class="timg"></div>
                                        </div>
                                    </div>
                                </div>
                            </uib-tab>
                        </uib-tabset>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <div id="addInfoModal" class="modal fade form-horizontal" tabindex="4" role="dialog">
        <div class="modal-dialog" style="height:1000px;width:1000px">
            <div class="modal-content" >
                <form class="form-horizontal" name="horizontalCardOne" novalidate>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                            &times;</button>
                        <h3 class="modal-title">前端显示配置</h3>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>大奖:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="maxPrizeNos" disabled ng-model="winningListInfo.maxPrizeNos" placeholder="奖项编号,多个以逗号隔开">
                                <div class="req_mesg" ng-show="horizontalCardOne.maxPrizeNos.$dirty && horizontalCardOne.maxPrizeNos.$invalid">
                                    <span ng-show="horizontalCardOne.maxPrizeNos.$error.required">大奖不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>大奖数量:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="maxPrizeCount" disabled ng-model="winningListInfo.maxPrizeCount">
                                <div class="req_mesg" ng-show="horizontalCardOne.maxPrizeCount.$dirty && horizontalCardOne.maxPrizeCount.$invalid">
                                    <span ng-show="horizontalCardOne.maxPrizeCount.$error.required">大奖数量不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>小奖:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="prizeNos" disabled ng-model="winningListInfo.prizeNos" placeholder="奖项编号,多个以逗号隔开" >
                                <div class="req_mesg" ng-show="horizontalCardOne.prizeNos.$dirty && horizontalCardOne.prizeNos.$invalid">
                                    <span ng-show="horizontalCardOne.prizeNos.$error.required">大奖不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>小奖数量:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="prizeCount" disabled ng-model="winningListInfo.prizeCount">
                                <div class="req_mesg" ng-show="horizontalCardOne.prizeCount.$dirty && horizontalCardOne.prizeCount.$invalid">
                                    <span ng-show="horizontalCardOne.prizeCount.$error.required">小奖数量不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>最小奖:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="minPrizeNos" disabled ng-model="winningListInfo.minPrizeNos" placeholder="奖项编号,多个以逗号隔开" >
                                <div class="req_mesg" ng-show="horizontalCardOne.minPrizeNos.$dirty && horizontalCardOne.minPrizeNos.$invalid">
                                    <span ng-show="horizontalCardOne.minPrizeNos.$error.required">最小奖不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>最小奖数量:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="minPrizeCount" disabled ng-model="winningListInfo.minPrizeCount">
                                <div class="req_mesg" ng-show="horizontalCardOne.minPrizeCount.$dirty && horizontalCardOne.minPrizeCount.$invalid">
                                    <span ng-show="horizontalCardOne.minPrizeCount.$error.required">最小奖数量不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>显示数量:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="count" disabled ng-model="winningListInfo.count">
                                <div class="req_mesg" ng-show="horizontalCardOne.count.$dirty && horizontalCardOne.count.$invalid">
                                    <span ng-show="horizontalCardOne.count.$error.required">显示数量不能为空</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <div class="form-group control-label">
                            <label class="col-sm-1 control-label"></label>
                            <div class="col-sm-6">
                                <button class="btn btn-primary4 btn-mr20" type="button" ng-click='hideDataModal()'>返回</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

